package com.mspbots.core.ticketai;


import com.mspbots.core.AbstractBaseController;
import com.mspbots.core.ticketai.model.Utilization;
import com.mspbots.core.ticketai.service.UtilizationService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.concurrent.Callable;

@RestController
@RequiredArgsConstructor
@RequestMapping("utilization")
public class UtilizationController extends AbstractBaseController<Utilization, UtilizationService> {

    private final UtilizationService utilizationService;

    @GetMapping("listbyweek")
    public Callable listbyweek(Utilization queryParam) {
        return () -> this.utilizationService.listbyweek(queryParam);
    }


    @GetMapping("listcurentyear")
    public Callable listcurentyear(Utilization queryParam) {
        return () -> this.utilizationService.listcurentyear(queryParam);
    }


}

